import React, { useState } from 'react'
import Test from './Test'

export default function App() {
  const [bar, setBar] = useState(true)
  return (
    <div>
      App
      <button onClick={() => setBar(!bar)}>销毁/创建</button>
      <hr />
      {bar && <Test />}
    </div>
  )
}
